package com.itheima;

public class Demo2 {
    public static void main(String[] args) {
        String str = "11 22 33 44 55";
        String[] strArr = str.split(" ");
        int[] arr = new int[strArr.length];
        for (int i = 0; i < strArr.length; i++) {
            int i1 = Integer.parseInt(strArr[i]);
            arr[i] = i1;
        }
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
    }
}
